package com.ehome.poct.core.api.dto.check;

import com.ehome.poct.base.api.dto.device.TestDeviceDTO;
import com.ehome.poct.base.api.dto.doctor.ClinicDTO;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 设备开始处理检测的提交参数
 *
 * @author cq
 * @since 2022/03/02 13:30
 **/
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Data
@ApiModel("设备开始处理检测提交参数基类dto")
@NoArgsConstructor
public class CheckParamDTO extends CheckReqDTO {
    private ClinicDTO clinic;
    private TestDeviceDTO device;

    public CheckParamDTO(CheckReqDTO req) {
        super(req.getDeviceSno(),
                req.getClinicId(),
                req.getPatientId(),
                req.getDeviceType(),
                req.getType(),
                req.getBoardSno(),
                req.getPath(),
                req.getBucketName(),
                req.getExtendInfo());
    }
}
